public class TestDemo {
    public static void main(String[] args) {
        myArrayList myArrayList = new myArrayList();
        myArrayList.add(0,1);
        myArrayList.add(1,2);
        myArrayList.add(2,3);
        myArrayList.add(3,4);
        myArrayList.display();

        myArrayList.setPos(0,99);
        myArrayList.display();

        System.out.println(myArrayList.contains(2));
        System.out.println(myArrayList.search(2));
        System.out.println(myArrayList.getPos(1));

        myArrayList.remove(2);
        myArrayList.display();

        myArrayList.reverse();
        myArrayList.display();

        myArrayList.clear();
        myArrayList.display();
    }
}
